package com.jiuxian.scheduling.servers.impl;

import com.jiuxian.scheduling.dao.LogDao;
import com.jiuxian.scheduling.servers.LogServer;
import com.jiuxian.scheduling.vo.LogInfoVO;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

/**
 * Created by wangjingqing on 2017/12/26.
 */
public class LogServerImpl implements LogServer{

    @Autowired
    private LogDao logDao;

    @Override
    public int insertLogInfo(LogInfoVO logInfoVO) {
        return logDao.insertLogInfo(logInfoVO);
    }

    @Override
    public List<LogInfoVO> selectLogInfos(String name, Date startTime, Date endTime) {
        return logDao.selectLogInfos(name,startTime,endTime);
    }
}
